<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>传递自定义参数，事件修饰符</title>
</head>
<body>
    <div id="event">
        <input type="button" value="双击" @dblclick="birthday('夏风',20)">
        <input type="text" @keyup.A="like">
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        var event=new Vue({
            el:"#event",
            methods:{
                birthday:function(name,age){
                    alert('祝'+name+age+'岁生日快乐🎂🎂🎂');
                },
                like:function(){
                    alert("你今天快乐吗？");
                }
            }
        })
    </script>
</body>
</html>